attrib

View or change the file attributes for a set of files.
      attrib [options] [[d:][path]file]

Options

  +r | -r
  Sets the read-only attribute.  -r clears it.

  +a | -a
  Sets the archive attribute.  -a clears it.

  +s | -s
  Sets the system attribute.  -s clears it.

  +h | -h
  Sets the hidden attribute.  -h clears it.

  /s
  Acts on subdirectories, too.

Notes

If no file is specified, then the attributes for all files in the current directory are changed (or simply displayed if none of the above specifiers are used.)

The archive attribute is set when a file is modified. Backup utilities can clear the attribute to indicate that the file has been backed up.


Copyright © 1998 Jim Hall
This file is derived from the FreeDOS Spec Command HOWTO. See the file H2Cpying.txt for copying conditions.
insce.txt">H2Licnse.txt for copying conditions.